var task = require('./serverAPI.js');
var later = require('later');

// every 10 minutes ,get all device install-list
var sched = later.parse.recur().every(10*60).second();
var period = later.setInterval(function() {
	console.log('\n========' + new Date() + '=========');
	task.start(task.newTask());
}, sched);


// task.start(task.newTask());